#include "dot.h"
#include "commands.h"
#include "world_utils.h"

#define DEFAULT_DISTANCE 2
#define DEFAULT_ENERGY 30

// Command methods
int look_for(dot* world, int distance, int x, int y, int grid_size, int to_look_for);
int mov_in_dir(dot* world, int direction, int grid_size, int x, int y);
int attempt_mov(dot* world, int old_location, int new_location);

// World functions
int run_world(dot* world, int grid_size);
int run_commands(dot* world, int x, int y, int grid_size);